<?

if ($_GET["cookie"]=="" && ($cookie_nntp_config=="" || $action=="option") )
{ 
     parse_str ($cookie_nntp_config);
    ?><body bgcolor="#FFFFFF"> 
    <form method="post" action="<?= $href ?>"> 
<table width='400' cellpadding="0" cellspacing="0" style='border:solid 1px #666666'> 
   <tr> 
      <td colspan="2"> 
                                                                                                                       
              <table class=vbutton width='100%' cellpadding="2"> 
            <tr> 
               <td valign='top' bgcolor='white'> 
                  <img src="images/logo.gif"> 
              </td> 
              <td valign='top' bgcolor='white' width='100%' nowrap style="FILTER: dropshadow(OffX=1, OffY=1,Color='#000000', Positive='true'); "> 
                  <b style="color:navy;font-size:16pt;font-family:Arial, Helvetica, sans-serif">NZFree</b> 
                  <div style="color:navy;font:8pt tahoma "> 
                  <b>Open Source</b> News Reader
                 </div> 
              </td> 
           </tr> 
           </table>                                                                                                                  
                                                                                                                        
      </td> 
   </tr> 
    <tr> 
        <td valign="top" bgcolor='gray' colspan='2'><img src="index.php?i=x" width='400' height="1"></td> 
   </tr> 
   <tr> 
        <td bgcolor="#E0E0E0" colspan="2" style="font:bold 8pt tahoma;padding:3px">Log In To NZFree</td> 
    </tr> 
    <tr> 
        <td valign="top" bgcolor='silver' colspan='2'><img src="index.php?i=x" width='400' height="1"></td> 
    </tr> 
    <tr> 
       <td valign="top" bgcolor="#FFFFFF" width="50%" style="font:8pt tahoma;padding:8px"> 
                                     Enter the name of the News Server you want to access here:
									 
									 <br><br>   
									 News server address:
									 <br> 
									 <input value="<?= $nntp_server ?>" name=newsserver size="25" type="text" style="border:solid 1px gray">   
									 <div align="right">
									 <input type="submit" value="Log In">   
									 </div>                                                                    
       </td> 
        <td valign="top" bgcolor="#FFFFFF" width="50%" style="font:8pt tahoma;padding:8px"> 
                    
                     If your News Server requires authentication, enter the  
					 username and password in the spaces provided.
                                                                                                                                      
           <table cellpadding="1" cellspacing="1" bgcolor="#999999" style="margin:4px"> 
              <tr> 
                  <td bgcolor="#F0F0F0" colspan="2" style="font:8pt tahoma;padding:3px">Enter log in credentials</td> 
               </tr> 
               <tr> 
                 <td bgcolor="#FFFFFF"> 
                                                                                                                                  
                        <table cellpadding="1" cellspacing="1"> 
                           <tr> 
                              <td  style="font:8pt tahoma"> <b style="color:#6699CC">Username</b> 
                              </td> 
                             <td > <input value="<?= $user ?>" name=username type="text" style="border:solid 1px gray"> 
                              </td> 
                           </tr> 
                           <tr> 
                             <td  style="font:8pt tahoma"> <b style="color:#6699CC">Password</b> 
                              </td> 
                              <td > <input value="<?= $pass ?>" name=password type="password" style="border:solid 1px gray"> 
                              </td> 
                           </tr> 
                           <tr> 
                              <td align='right' colspan="2"> <input type="submit" value="Log In"> 
                             </td> 
                           </tr> 
                        </table> 
                                                                                                                             
                </td> 
               </tr> 
           </table> 
		   
		    If you do not know your 
			 username and/or password, you may contact your system administrator or 
			 click <a href="http://www.usenet.com"><strong>here</strong></a> for more information about UseNet. 
					 
       </td> 
    </tr>  
</table>                                                                                                                     
</form> 
    </body> 
   <? 
    exit; 
} 
else
{
   parse_str ($cookie_nntp_config);
}

?>